import { LOGIN,OUTLOGIN,ADDGOODS,DELETEGOODS,INCREASE,REDUCER } from '../constants'
export const login = (data) => {
    return {
      data,
      type: LOGIN
    }
  }
  
export const outlogin = () => {
    return {
      type: OUTLOGIN
    }
  }

export const addgoods = (data) =>{
  return{
    data:data,
    type:ADDGOODS
  }
}

export const deletegoods = (data) =>{
  return {
    data:data,
    type:DELETEGOODS
  }
}

export const increase = (data) =>{
  return {
    data,
    type:INCREASE
  }
}

export const reducer = (data) =>{
  return {
    data,
    type:REDUCER
  }
}
